<script setup>
import {onMounted, ref, reactive} from "vue";

onMounted(() => {
    formModel.roleCode = props.data.roleCode
})
const props = defineProps(["data"])
const emits = defineEmits(["submit", "cancel"])

const data = ref([{
    key: 1,
    label: 'option',
    display: false
}])
const value = ref([])

const user = ref([])
const hasRoleUsers = ref([])

const handleChange = () => {

}

const permissions = ref([])

const formModel = reactive({
    roleCode: '',
    users: [],
    perms: []
});

</script>

<template>
    <div>
        <el-form :model="formModel">
            <el-form-item prop="roleCode">
                <div>
                    <el-input v-model="formModel.roleCode" disabled></el-input>
                </div>
            </el-form-item>
        </el-form>
    </div>
</template>

<style scoped>

</style>